import request from '@/utils/request'

// 查询宝石列表
export function listGemstone(query) {
  return request({
    url: '/system/gemstone/list',
    method: 'get',
    params: query
  })
}

// 查询宝石详细
export function getGemstone(id) {
  return request({
    url: '/system/gemstone/' + id,
    method: 'get'
  })
}

// 新增宝石
export function addGemstone(data) {
  return request({
    url: '/system/gemstone',
    method: 'post',
    data: data
  })
}

// 修改宝石
export function updateGemstone(data) {
  return request({
    url: '/system/gemstone',
    method: 'put',
    data: data
  })
}

// 删除宝石
export function delGemstone(id) {
  return request({
    url: '/system/gemstone/' + id,
    method: 'delete'
  })
}
